# Contributer: Baruch Burstein <bmburstein at gmail dot com>

_realname=Algorithm-Diff
pkgname=perl-${_realname}
pkgver=1.1903
pkgrel=1
pkgdesc="Compute 'intelligent' differences between two files / lists"
arch=('any')
url="https://metacpan.org/author/TYEMQ${_realname}-${pkgver}"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/T/TY/TYEMQ/${_realname}-${pkgver}.tar.gz")
sha256sums=('30e84ac4b31d40b66293f7b1221331c5a50561a39d580d85004d9c1fff991751')

build() {
  cd ${_realname}-${pkgver}
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd ${_realname}-${pkgver}
  make install DESTDIR="$pkgdir"
}
